package com.china08.yxyapi.repository.mg;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.lessons.YxyLessonsUserScore;

public interface YxyLessonsUserScoreRepository extends MongoRepository<YxyLessonsUserScore, String> {

    YxyLessonsUserScore findByUserId(String userId);

    YxyLessonsUserScore findByUserIdAndLessonsId(String userId, String lessonsId);

    List<YxyLessonsUserScore> findByLessonsId(String lessonsId);

}
